package com.qf.commons.utils;

import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * User: key
 * ClassName:UUIDUtils
 * Date: 2023/6/3
 * Time: 21:00
 * description:
 */
public class UUIDUtils {

    public String getId(){
        return UUID.randomUUID().toString().replaceAll("-","");
    }
//
//    public static void main(String[] args) {
//        String id1 = UUIDUtils.getId();
//        String id2 = UUIDUtils.getId();
//        String id3 = UUIDUtils.getId();
//        System.out.println(id1);
//        System.out.println(id2);
//        System.out.println(id3);
//    }
}